<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="javascrip-hover/sHover.min.js"></script>
    <style>
        .sHoverItem{
            overflow: hidden;
            width: 280px;
            height: 180px;
            border: 1px solid #333;
        }
        .sHoverItem>img{
            width: 280px;
            height: 180px;
        }
        .sIntro{
            background: rgba(155, 150, 150, 0.8);
        }
    </style>
</head>
<body>
    <div id="item1" class="sHoverItem">
        <img id="img1" src="img/img-7f3a16e0d3745165410adeb572353510.jpg">
        <span id="intro1" class="sIntro">
            <h2>Flowers</h2>
            <p> Flowers are so inconsistent!  </p>
            <button>inconsistent</button>
        </span>
    </div>
    <script>
        var a=new sHover("sHoverItem","sIntro");
        a.set({
            slideSpeed:5,
            opacityChange:true,
            opacity:80
        });
    </script>
</body>
</html>